package com.aiolos.mp.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
public class MpUser extends Model<MpUser> {

    private static final long serialVersionUID = 1L;

    //主键
    @TableId
    private Long uId;
    private String name;
    private Integer age;
    private String email;
    private Integer managerId;
    @TableField(fill= FieldFill.INSERT)
    private Date createTime;
    @TableField(fill=FieldFill.UPDATE)
    private Date updateTime;
    @Version
    private Integer version;
    @TableLogic
    @TableField(select = false)
    private Integer deleted;
}
